import numpy as np
import os

def gen_golden_data_logsigmoid_tiling():

    input_x = np.random.uniform(-10, 10, [8, 2048]).astype(np.float16)
    neg_x = -input_x.astype(np.float16)
    softplus_neg_x = np.log(np.exp(neg_x) + 1)
    golden = (-softplus_neg_x).astype(np.float16)

    tiling = np.array([16384, 8], dtype=np.uint32)
    tiling.tofile("./input/input_tiling.bin")

    input_x.tofile("./input/input_x.bin")
    golden.tofile("./output/golden.bin")

if __name__ == "__main__":
    gen_golden_data_logsigmoid_tiling()